<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>localStorage.html</title>
</head>
<body>
<script type="text/javascript">
    localStorage.lastname="Smith";
    document.write("Last name: " + localStorage.lastname);
</script>
</body>
</html>
